package com.qipay.sp.excutor.qfpay.token;

/**
 * Created by 杨荔楠_pc on 2017/12/1.
 */
public class QfpayToken {

    private  String token;
    private  long  expirSecond;
    private  long  timeStamp;

    public boolean isExpire(){
        long current = System.currentTimeMillis()+1*60*1000;
        if((current - timeStamp)/1000 >= expirSecond){
            return true;
        }
        return false;
    }


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpirSecond() {
        return expirSecond;
    }

    public void setExpirSecond(long expirSecond) {
        this.expirSecond = expirSecond;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }
}
